package com.superafroman.utils.scanner.criteria;

import java.io.InputStream;

/**
 * Interface for criteria used on classes in class path scanning.
 */
public interface IClassCriteria {

    /**
     * Check if the class represented by the given file fits this classes
     * criteria.
     *
     * @param classInputStream
     *         An {@link InputStream} containing the bytes of the class to
     *         check.
     * @return
     *         true if the class fits our criteria, false otherwise.
     */
    boolean fitsCriteria(String className, InputStream classInputStream);
}
